home *** CD-ROM | disk | FTP | other *** search
/ PC Media 20 / PC MEDIA CD20.iso / share / prog / spytrak / test.asm < prev    next >
Encoding:
Assembly Source File  |  1994-12-03  |  1.1 KB  |  54 lines

  1. .MODEL SMALL
  2. .STACK 100h
  3. .DATA
  4. Data_1  DB      'This is TEST # 1. <PRESS ANY KEY TO CONTINUE>',13,10,'$'
  5. Data_2  DB      0BAh,00,00,0B4h,09,0CDh,021h,0C3h
  6.  
  7. .CODE
  8.  
  9. start:  
  10.         mov     ax,@data
  11.         mov     ds,ax
  12.         cld
  13.         lea     si,Data_2
  14.         lea     di,cs:[Data_3]
  15.         dec     di
  16.         mov     cx,8
  17. loc_1:
  18.         lodsb                 ;ds:[si]->al
  19.         mov     cs:[di],al
  20.         inc     di
  21.         loop    loc_1
  22.  
  23.         mov     al,0
  24.         cmp     al,0
  25.         je      loc_2
  26.  
  27.         ;--set cursor--
  28.         mov     ah,2
  29.         mov     bh,0
  30.         mov     dh,0Ah       ;row number
  31.         mov     dl,0Fh       ;column number
  32.         int     10h
  33. loc_2:
  34.         
  35.         call    _Test
  36.         mov     ah,0
  37.         int     16h
  38.  
  39.         int     8
  40.  
  41.         mov     ah,4ch
  42.         int     21h
  43.  
  44. ;▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  45. ;
  46. ;▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  47. _Test  PROC
  48.         ret
  49. Data_3  db    7 dup(?)  
  50. _Test   ENDP
  51.  
  52. END     start
  53.  
  54.